﻿@{
    Layout = null;
    string prompt = Session["prompt"].ToString();
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>管理登陆</title>
    <link href="~/Content/css/daterangepicker-bs3.css" type="text/css" media="all" rel="stylesheet" />
    <script src="../Scripts/jquery-1.7.1.min.js"></script>
    <!-- Bootstrap core CSS     -->
    <link href="../Content/css/bootstrap.min.css" rel="stylesheet" />

    <!--  Light Bootstrap Dashboard core CSS    -->
    <link href="../Content/css/light-bootstrap-dashboard.css" rel="stylesheet" />

    <!--  CSS for Demo Purpose, don't include it in your project     -->
    <link href="../Content/css/demo.css" rel="stylesheet" />


    <!--     Fonts and icons     -->
    <link href="../Content/css/font-awesome.min.css" rel="stylesheet">
    <link href='../Content/css/685fd913f1e14aebad0cc9d3713ee469.css' rel='stylesheet' type='text/css'>
    <link href="../Content/css/pe-icon-7-stroke.css" rel="stylesheet" />
</head>
<body>

    <nav class="navbar navbar-transparent navbar-absolute">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-example-2">
                    <span class="sr-only">切换导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#"></a>
            </div>
            <div class="collapse navbar-collapse">

                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="#">Register</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>


    <div class="wrapper wrapper-full-page">
        <div class="full-page login-page" data-color="azure" data-image="../../Content/picture/full-screen-image-4.jpg">

            <!--   you can change the color of the filter page using: data-color="blue | azure | green | orange | red | purple" -->
            <div class="content">
                <div class="container">
                    <div class="row">
                        <div class="col-md-4 col-sm-6 col-md-offset-4 col-sm-offset-3">
                            <form method="post" id="Login">

                                <!--   if you want to have the card without animation please remove the ".card-hidden" class   -->
                                <div class="card">
                                    <div class="header text-center">Login</div>
                                    <div class="content">
                                        <div class="form-group">
                                            <label>账  号</label>
                                            <input type="text" placeholder="Account number" class="form-control" name="AdminName">
                                        </div>
                                        <div class="form-group">
                                            <label>密  码</label>
                                            <input type="password" placeholder="Password" class="form-control" name="AdminPwd">
                                        </div>
                                        <div class="form-group">
                                            <label class="checkbox">
                                                <span class="icons"><span class="first-icon fa fa-square-o"></span><span class="second-icon fa fa-check-square-o"></span></span>
                                                <input type="checkbox" data-toggle="checkbox" value="">
                                                记住密码
                                            </label>
                                        </div>
                                    </div>
                                    <div class="footer text-center">
                                        <button id="submit" type="button" class="btn btn-fill btn-warning btn-wd" onclick="Login()">登 录</button>
                                    </div>
                                </div>

                            </form>
                            <script>
                                $(function () {
                                    if (Session["prompt"]!=null)
                                    {
                                        swal("账号已过期，请重新登陆");
                                    }
                                });
                                //提交表单
                                function Login() {

                                    $.ajax({
                                        cache: true,
                                        type: "POST",
                                        url: '/ManageLogin/ManageLogin',
                                        data: $('#Login').serialize(),// 你的formid
                                        async: false,
                                        error: function (request) {

                                        },
                                        success: function (data) {
                                            if (data == "登陆成功") {
                                                location.href = "/ManageHome/Index";
                                            } else {
                                                swal("用户名或密码错误", "", "error");
                                            }

                                        }
                                    });
                                }
                            </script>
                        </div>
                    </div>
                </div>
            </div>

            <footer class="footer footer-transparent">
                <div class="container">
                    <nav class="pull-left">
                        <ul>
                            <li>
                                <a href="/Home/Index">首页
                                </a>
                            </li>
                            <li>
                                <a href="#">单位
                                </a>
                            </li>
                            <li>
                                <a href="#">文件夹
                                </a>
                            </li>
                            <li>
                                <a href="#">博客
                                </a>
                            </li>
                        </ul>
                    </nav>
                    <p class="copyright pull-right">
                        &copy; 2018-9-11 <a href="#">BWAP</a>, The persistence from Wu Yuheng
                    </p>
                </div>
            </footer>

            <div class="full-page-background" style="background-image: url(../../assets/img/full-screen-image-1.jpg)"></div>
        </div>

    </div>



    <!--配置-->
    @*<div class="fixed-plugin">
        <div class="dropdown">
            <a href="#" data-toggle="dropdown">
                <i class="fa fa-cog fa-2x"></i>
            </a>
            <ul class="dropdown-menu">
                <li class="header-title">配置</li>
                <li class="adjustments-line">
                    <a href="javascript:void(0)" class="switch-trigger">
                        <p>侧边栏背景</p>
                        <div class="switch switch-sidebar-image"
                            data-on-label="ON"
                            data-off-label="OFF">
                            <input type="checkbox" checked />
                        </div>
                        <div class="clearfix"></div>
                    </a>
                </li>
                <li class="adjustments-line">
                    <a href="javascript:void(0)" class="switch-trigger">
                        <p>侧边栏迷你版</p>
                        <div class="switch  switch-sidebar-mini"
                            data-on-label="ON"
                            data-off-label="OFF">
                            <input type="checkbox" />
                        </div>
                        <div class="clearfix"></div>
                    </a>
                </li>
                <li class="adjustments-line">
                    <a href="javascript:void(0)" class="switch-trigger">
                        <p>固定导航栏</p>
                        <div class="switch  switch-navbar-fixed"
                            data-on-label="ON"
                            data-off-label="OFF">
                            <input type="checkbox" />
                        </div>
                        <div class="clearfix"></div>
                    </a>
                </li>
                <li class="adjustments-line">
                    <a href="javascript:void(0)" class="switch-trigger">
                        <p>颜色</p>
                        <div class="pull-right">

                            <span class="badge filter" data-color="black"></span>
                            <span class="badge filter badge-azure active" data-color="azure"></span>
                            <span class="badge filter badge-green" data-color="green"></span>
                            <span class="badge filter badge-orange" data-color="orange"></span>
                            <span class="badge filter badge-red" data-color="red"></span>
                            <span class="badge filter badge-purple" data-color="purple"></span>
                        </div>
                        <div class="clearfix"></div>
                    </a>
                </li>
                <li class="header-title">侧边栏图片</li>
                <li>
                    <a class="img-holder switch-trigger" href="javascript:void(0)">
                        <img src="~/Content/picture/full-screen-image-1.jpg" />
                    </a>
                </li>
                <li>
                    <a class="img-holder switch-trigger" href="javascript:void(0)">
                        <img src="~/Content/picture/full-screen-image-2.jpg" />
                    </a>
                </li>
                <li>
                    <a class="img-holder switch-trigger" href="javascript:void(0)">
                        <img src="~/Content/picture/full-screen-image-3.jpg" />
                    </a>
                </li>
                <li class="active">
                    <a class="img-holder switch-trigger" href="javascript:void(0)">
                        <img src="~/Content/picture/full-screen-image-4.jpg" />
                    </a>
                </li>
            </ul>
        </div>
    </div>*@



    <!--   Core JS Files and PerfectScrollbar library inside jquery.ui   -->
    <script src="../Content/js/jquery.min.js" type="text/javascript"></script>
    <script src="../Content/js/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Content/js/bootstrap.min.js" type="text/javascript"></script>

    <script src="~/Content/js/moment.js"></script>

    <script src="../Content/js/daterangepicker.js"></script>
    <!--  Forms Validations Plugin -->
    <script src="../Content/js/jquery.validate.min.js"></script>

    <!--  Plugin for Date Time Picker and Full Calendar Plugin-->
    <script src="../Content/js/moment.min.js"></script>

    <!--  Date Time Picker Plugin is included in this js file -->
    <script src="../Content/js/bootstrap-datetimepicker.js"></script>

    <!--  Select Picker Plugin -->
    <script src="../Content/js/bootstrap-selectpicker.js"></script>

    <!--  Checkbox, Radio, Switch and Tags Input Plugins -->
    <script src="../Content/js/bootstrap-checkbox-radio-switch-tags.js"></script>

    <!--  Charts Plugin -->
    <script src="../Content/js/chartist.min.js"></script>

    <!--  Notifications Plugin    -->
    <script src="../Content/js/bootstrap-notify.js"></script>

    <!-- Sweet Alert 2 plugin -->
    <script src="../Content/js/sweetalert2.js"></script>

    <!-- Vector Map plugin -->
    <script src="../Content/js/jquery-jvectormap.js"></script>

    <!--  Google Maps Plugin    -->
    <script src="../Content/js/aa743e8f448a4792bad10d201a7080f6.js"></script>

    <!-- Wizard Plugin    -->
    <script src="../Content/js/jquery.bootstrap.wizard.min.js"></script>

    <!--  Bootstrap Table Plugin    -->
    <script src="../Content/js/bootstrap-table.js"></script>

    <!--  Plugin for DataTables.net  -->
    <script src="../Content/js/jquery.datatables.js"></script>

    <!--  Full Calendar Plugin    -->
    <script src="../Content/js/fullcalendar.min.js"></script>

    <!-- Light Bootstrap Dashboard Core javascript and methods -->
    <script src="../Content/js/light-bootstrap-dashboard.js"></script>

    <!--   Sharrre Library    -->
    <script src="../Content/js/jquery.sharrre.js"></script>

    <!-- Light Bootstrap Dashboard DEMO methods, don't include it in your project! -->
    <script src="~/Content/js/demo.js"></script>


    <script type="text/javascript">
        $().ready(function () {
            lbd.checkFullPageBackgroundImage();

            setTimeout(function () {
                // after 1000 ms we add the class animated to the login/register card
                $('.card').removeClass('card-hidden');
            }, 700)
        });
    </script>



    <div class="sweet-container">
        <div class="sweet-overlay" tabindex="-1"></div>
        <div class="sweet-alert" style="display: none" tabindex="-1">
            <div class="icon error"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div>
            <div class="icon warning"><span class="body"></span><span class="dot"></span></div>
            <div class="icon info"></div>
            <div class="icon success">
                <span class="line tip"></span><span class="line long"></span>
                <div class="placeholder"></div>
                <div class="fix"></div>
            </div>
            <img class="sweet-image">
            <h2>Title</h2>
            <div class="sweet-content">Text</div>
            <hr class="sweet-spacer">
            <button class="sweet-confirm">OK</button>
            <button class="sweet-cancel">Cancel</button>
        </div>
    </div>
</body>
</html>
